import axios from 'axios'

const serviceAI = axios.create({
    baseURL: process.env.VUE_APP_CHATGPT4_ASSISTANT_API
    // withCredentials: true
})
// 请求拦截器
serviceAI.interceptors.request.use((config) => {

    return config
}, (err) => {
    return err
})

// 响应拦截器
serviceAI.interceptors.response.use((response) => {

    return response.data
}, (error) => {

    return error
})

export default serviceAI
